package net.url;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.CacheRequest;

public class SimpleCacheRequest extends CacheRequest
{
	ByteArrayOutputStream out = new ByteArrayOutputStream();
	@Override
	public OutputStream getBody() throws IOException
	{
		return out;
	}

	@Override
	public void abort()
	{
		out = null;
	}
	public byte[] getData()
	{
		return out.toByteArray();
	}
}
